#!/usr/bin/env python
# -*- coding: utf-8 -*-
'''
说明：
	使用cv.imread()读取1张图片并通过cv.imshow()显示
用法：
	./00_show_one_picture.py   <image_path>
'''

import   cv2 as cv
import numpy as ny

import sys

print 'opencv version:',cv.__version__,len(sys.argv)

if len(sys.argv) < 2:
	print 'error,please input image path:' 
	exit(-1)


img = cv.imread(sys.argv[1],1)

cv.imshow('image',img)

cv.waitKey(0)

